<template>
  <div>
    <el-button type="primary" plain @click="to">请假申请</el-button>
    <el-button type="primary" plain @click="to1">历史申请</el-button>
  </div>
</template>

<script>
import {useRouter} from 'vue-router'


export default {
  name: "HomeName",
  setup() {
    const router = useRouter()
    function to() {
      router.push({path: "/Leave"})
    }
    function to1() {
      router.push({path: "/history"})
    }
    return {
      to,to1
    }
  },
}
</script>

<style scoped>

</style>
